package com.zrar.easyweb.demo.portal.controller;

import com.zrar.easyweb.demo.portal.service.UserService;
import com.zrar.easyweb.demo.portal.vo.UserDetails;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 门户服务
 *
 * @author green
 * @date 2019/10/15
 * @company 安人股份
 * @desc
 */
@RestController
@RequestMapping("/portal")
public class PortalController {

    @Resource
    private UserService userService;

    @GetMapping("/robbin")
    public UserDetails robbin() {
        return userService.getUserDetailsByRobbin("RB001");
    }
    
    @GetMapping("/feign")
    public UserDetails feign() {
        return userService.getUserDetailsByFeign("FG001");
    }

}
